local ArmourBaseConfig = require("excel.Armour").armour

ARMOUR_STATETYPE_HOLD                   = 0         -- 穿戴
ARMOUR_STATETYPE_UNHOLD                 = 1         -- 非穿戴

function getViewInfo(armourID, sex)
    local nArmourBaseConfig = ArmourBaseConfig[armourID]
    if nArmourBaseConfig then
        local nHeadID = (sex == 1) and nArmourBaseConfig.headid[1] or nArmourBaseConfig.headid[2]
        local nBodyID = (sex == 1) and nArmourBaseConfig.bodyid[1] or nArmourBaseConfig.bodyid[2]
        local nPiFengID = (sex == 1) and nArmourBaseConfig.pifengid[1] or nArmourBaseConfig.pifengid[2]
        local nLeftArmID = (sex == 1) and nArmourBaseConfig.armid[1][1] or nArmourBaseConfig.armid[2][1]
        local nRightArmID = (sex == 1) and nArmourBaseConfig.armid[1][2] or nArmourBaseConfig.armid[2][2]
        return nHeadID, nBodyID, nPiFengID, nLeftArmID, nRightArmID
    end
    return 0, 0, 0, 0, 0 
end

